import 'package:flutter/material.dart';

class EditTextField extends StatelessWidget {
  final int? maxLines;
  final String? hintText;
  final int? maxLength;
  final TextEditingController? controller;
  final FocusNode? focusNode;

  const EditTextField(
      {Key? key,
      this.maxLines,
      this.hintText,
      this.maxLength,
      this.controller,
      this.focusNode})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(bottom: 16),
      child: TextField(
          focusNode: focusNode,
          controller: controller,
          autocorrect: false,
          maxLength: maxLength,
          maxLines: maxLines,
          decoration: InputDecoration(
            fillColor: Colors.white,
            contentPadding: EdgeInsets.symmetric(vertical: 5, horizontal: 20),
            filled: true,
            hintText: hintText,
            hintStyle: TextStyle(fontSize: 14),
            border: InputBorder.none,
          )),
    );
  }
}
